package club.baibin0558.jstudy.core.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author 白彬
 */
@ApiModel("JStudyNode实体")
public class JStudyNode {
    @ApiModelProperty(name="id",value = "id",dataType = "Integer")
    @Id
    private Long id;
    @ApiModelProperty(name="code",value = "code",dataType = "String")
    private String code;
    @ApiModelProperty(name="text",value = "text",dataType = "String")
    private String text;
    @ApiModelProperty(name="parentCode",value = "parentCode",dataType = "String")
    private String parentCode;
    @ApiModelProperty(name="children",value = "children",dataType = "List")
    private List<JStudyNode> children = new ArrayList<>();
    @ApiModelProperty(name="iconPath",value = "iconPath",dataType = "String")
    private String iconPath;
    private Date updateDate;
    private String updateUser;
    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public String getIconPath() {
        return iconPath;
    }

    public void setIconPath(String iconPath) {
        this.iconPath = iconPath;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public List<JStudyNode> getChildren() {
        return children;
    }

    public void setChildren(List<JStudyNode> children) {
        this.children = children;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
